<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // var year = prompt("请输入入职年份:");
        // var month = prompt("请输入入职月份:");
        // var date = prompt("请输入入职日期:");
        // function getContract(y, m, d) {
        //     var time = new Date(year, month - 1, date);
        //     document.write("该员工的入职时间是：" + time.getFullYear() + "年-" + (time.getMonth() + 1) + "月-" + time.getDate() + "日<br>");
        //     document.write("该员工合同到期时间是：" + (time.getFullYear() + 3) + "年-" + (time.getMonth() + 1) + "月-" + time.getDate() + "日");
        // }
        // getContract(year, month, date);

        var week = new Date();
        var weeks = ["日", "一", "二", "三", "四", "五", "六"];
        document.write("今天是星期" + weeks[week.getDay()]);
    </script>
</head>

<body>

</body>

</html>